all:main  testudpclient testudpserver 



dependence_kcp=../kcp/Control.hpp ../kcp/Kcp.hpp ../kcp/KcpHdr.hpp
dependence_transport=../transport/transport.hpp ../transport/transport_udp.hpp
dependenc_util=../util/datatypes.hpp ../util/header.hpp ../util/io.hpp ../util/poll_manager.hpp ../util/poll_set.hpp ../util/util.hpp ../util/ThreadPool.hpp ../util/Trace.hpp ../util/UdpSocket.hpp

lib=-lpthread -lboost_system -lboost_thread



 
main:main.cpp ${dependence}
	g++ -std=c++17 -g -o main main.cpp ${lib}

testudpclient:testudpclient.cpp ${dependence}
	g++ -std=c++17 -g -o testudpclient testudpclient.cpp ${lib} 

testudpserver:testudpserver.cpp ${dependence}
	g++ -std=c++17 -g -o testudpserver testudpserver.cpp ${lib}


clean:
	rm -f main testudpclient testudpserver 
